package com.murray.assignment.mapper;

import com.murray.assignment.pojo.Cart;
import com.murray.assignment.pojo.Users;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author Murray
 * @Date 2021/6/9
 * @Time 17:59
 */
@Repository
public interface CartMapper {
    /**
     * 用于添加一个购物车
     *
     * @param cart
     * @return
     */
    Integer addCart(Cart cart);

    Integer updateCart(Integer cartId);

    Integer selectByCartId(Integer cartId);

    Integer subCart(Integer cartId);

    Cart selectCartList(Map<String, Object> map);
}
